from django.conf.urls import patterns, include, url

from planner.views import *
from planner.jobs import JobOperations
# Un
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

print 1
jobOperations = JobOperations();
print 2
urlpatterns = patterns('',
    url(r'^hello/(\d+)/$', hello),
    url(r'^data/jobs/select/', jobOperations.getJobs),
    url(r'^data/jobs/add/', jobOperations.addJob),
    url(r'^data/jobs/remove/', jobOperations.removeJob),
    url(r'^data/jobs/update/', jobOperations.updateJob),

    url(r'^data/developers/select/', data_developers),
    url(r'^data/link_developer_with_job/', link_developer_with_job),
    url(r'^data/link_developer_with_parent/', link_developer_with_parent),
    url(r'^data/link_job_with_parent/', link_job_with_parent),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^mxgraph/$', load_graph),


    url(r'^$', load_index_file),
    url(r'^(.+)\.js$', load_js_file),
    url(r'^(.+)\.properties$', load_prop_file),
    url(r'^(.+)\.css$', load_style_file),
    url(r'^(.+)\.js(.+)', load_js_file),
    url(r'^(.+)\.gif$', load_image_gif_file),
    url(r'^(.+)\.png$', load_image_svg_file),
    # Examples:
    # url(r'^$', 'planner.views.home', name='home'),
    # url(r'^planner/', include('planner.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
)
